package com.sakura.elderly.dto;

import com.sakura.base.common.handler.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/**
 * @author : Sakura
 * @Date : 2024/1/25 16:54
 * @Description : TODO
 */
@Data
@ApiModel(value = "elderlyQueryParamDto",description = "结束老人查询参数dto")
public class ElderlyQueryParamDto {
    @ApiModelProperty("id")
    private Long id;

    @NotEmpty(message = "添加课程名称不能为空", groups = ValidationGroups.Insert.class)
    @NotEmpty(message = "修改课程名称不能为空", groups = ValidationGroups.Update.class)
    @ApiModelProperty(value = "姓名", required = true)
    private String name;
}
